The rmdir Command The rmdir command is a built-in shell command that is used to remove empty directories on Unix-like operating systems.